<html>
<head><meta charset="utf-8"><title>rustdoc debug logging · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html">rustdoc debug logging</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="213027742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustdoc%20debug%20logging/near/213027742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dániel Buga <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html#213027742">(Oct 12 2020 at 11:48)</a>:</h4>
<p>I'm trying to get debug messages out of rustdoc. I found what syntax I shall use (<code>RUSTDOC_LOG=rustdoc=debug ./x.py test src/test/rustdoc*</code> if that's correct), but all I get are info level or above, with a note that</p>
<div class="codehilite"><pre><span></span><code>warning: some trace filter directives would enable traces that are disabled statically
 | `rustdoc=trace` would enable the TRACE level for the `rustdoc` target
 = note: the static max level is `info`
 = help: to enable DEBUG logging, remove the `max_level_info` feature
</code></pre></div>


<p>I'm not sure where I can disable the said feature, as I don't see either the <code>log</code>, or the <code>env-loger</code> crates anywhere and the <a href="https://rustc-dev-guide.rust-lang.org/compiler-debugging.html">Debugging The Compiler</a> chapter is also unhelpful here.</p>
<p>I can see that the examples there use <code>rustdoc</code> directly instead of <code>x.py</code> but I assume that's fine since the RUSTDOC env var enables at least something.</p>



<a name="213037698"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustdoc%20debug%20logging/near/213037698" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html#213037698">(Oct 12 2020 at 13:27)</a>:</h4>
<p>You want <code>debug-logging = true</code> in config.toml</p>



<a name="213037780"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustdoc%20debug%20logging/near/213037780" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html#213037780">(Oct 12 2020 at 13:27)</a>:</h4>
<p>Oof that dev-guide chapter is very out of date</p>



<a name="213039734"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustdoc%20debug%20logging/near/213039734" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html#213039734">(Oct 12 2020 at 13:43)</a>:</h4>
<p>FWIW it would have shown up if you ran <code>rg max_level_info</code> :/ but I guess you have to think to do that first</p>



<a name="213040067"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustdoc%20debug%20logging/near/213040067" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dániel Buga <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html#213040067">(Oct 12 2020 at 13:46)</a>:</h4>
<p>No you are right, technically the message told me what to do<br>
And I'd also like to think that sometimes I'm able to think <span aria-label="eyes" class="emoji emoji-1f440" role="img" title="eyes">:eyes:</span></p>



<a name="213040352"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustdoc%20debug%20logging/near/213040352" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html#213040352">(Oct 12 2020 at 13:48)</a>:</h4>
<p>well, I meant 'think' as in 'be clever', not as in 'have thoughts' :P</p>



<a name="213040387"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/rustdoc%20debug%20logging/near/213040387" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Dániel Buga <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/rustdoc.20debug.20logging.html#213040387">(Oct 12 2020 at 13:49)</a>:</h4>
<p>Don't worry about it, I just had to react <span aria-label="smile" class="emoji emoji-1f642" role="img" title="smile">:smile:</span></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>